import { deleteRequest, getRequest, postRequest, putRequest } from "@/utils/api.js"

// 分页获取记录列表信息
export function recordPageData(params = {}) {
	return postRequest('/alarm/record/getPageData', params);
}

// 更新记录信息
export function updateRecord(params = {}) {
	return putRequest('/alarm/record', params);
}

// 删除记录信息
export function deleteRecord(id) {
	return deleteRequest('/alarm/record/' + id);
}

// 根据处理状态获取记录图表统计数据
export function getRecordCountByProcessStatus(params = {}) {
	return postRequest('/alarm/record/getRecordCountByProcessStatus', params);
}

// 批量删除记录信息
export function deleteRecords(params = {}) {
	return deleteRequest('/alarm/record', params);
}